<!--  -->
<template>
  <div>
    <el-row
      v-for="(item,index) in goodsList"
      :key='index'
      class="card-container"
    >
      <el-col
        :span="7"
        class="img"
      >
        <a
          href=""
          class="img-out"
        >
          <img
            :src="item.img"
            alt=""
          >
          <span>{{index+1}}</span>
        </a>
      </el-col>
      <el-col
        :span="17"
        class='content-p'
      >

        <p class=p1><a href="">{{item.name}}</a></p>
        <p><i
            class="el-icon-star-on i"
            v-for="(i,idx) of 5"
            :key='idx'
          ></i>很好 {{item.code}}分 <span class="i">{{item.comments}}人评论</span></p>
        <p>{{item.address}} <nuxt-link to='/'><i class="el-icon-location"></i>查看地图</nuxt-link>
        </p>
        <p>人均¥{{item.price}}</p>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  data() {
    return {
      goodsList: [
        {
          img:
            "//p0.meituan.net/hotel/d27112bbc52e04a2af3565763efa4b657205896.jpg@220w_125h_1e_1c",
          name: "阿比特室内滑雪俱乐部",
          code: 4.8,
          comments: 27,
          address: "滑雪场|朝阳区 朝阳区高碑店路半壁店1号文化产业园",
          price: 2378
        },
        {
          img:
            "//p0.meituan.net/hotel/d27112bbc52e04a2af3565763efa4b657205896.jpg@220w_125h_1e_1c",
          name: "阿比特室内滑雪俱乐部",
          code: 4.8,
          comments: 27,
          address: "滑雪场|朝阳区 朝阳区高碑店路半壁店1号文化产业园",
          price: 2378
        },
        {
          img:
            "//p0.meituan.net/hotel/d27112bbc52e04a2af3565763efa4b657205896.jpg@220w_125h_1e_1c",
          name: "阿比特室内滑雪俱乐部",
          code: 4.8,
          comments: 27,
          address: "滑雪场|朝阳区 朝阳区高碑店路半壁店1号文化产业园",
          price: 2378
        },
        {
          img:
            "//p0.meituan.net/hotel/d27112bbc52e04a2af3565763efa4b657205896.jpg@220w_125h_1e_1c",
          name: "阿比特室内滑雪俱乐部",
          code: 4.8,
          comments: 27,
          address: "滑雪场|朝阳区 朝阳区高碑店路半壁店1号文化产业园",
          price: 2378
        }
      ]
    };
  },

  components: {},

  computed: {},

  methods: {}
};
</script>
<style lang='scss' scoped>
.card-container {
  padding: 20px 0;
  border-top: 1px solid #e5e5e5;
}
.img-out {
  display: block;
  height: 100%;
  width: 220px;
  position: relative;
  span {
    position: absolute;
    top: 4px;
    left: -4px;
    background: #fb6433;
    border-radius: 2px;
    line-height: 13px;
    width: 20px;
    text-align: center;
    font-size: 12px;
    color: #fff;
  }
}
.img {
  width: 220px;
  img {
    border-radius: 4px;
  }
}
.content-p {
  padding-left: 23px;
  p {
    font-size: 12px;
    color: #666;
    line-height: 24px;
    .i {
      color: #f90;
    }
  }
  .p1 > a {
    font-weight: 500;
    font-size: 16px;
    color: #333;
  }
}
</style>
